package com.read.clients;

import com.read.resp.BaseResp;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName OrderClientFallback
 * @Description TODO
 * @Author young
 * @Date 2022-11-07 16:53
 * @Version 1.0
 **/
@Component
public class OrderClientsFallback implements OrderClients {
    @Override
    public BaseResp getOrdersByUserId(HttpServletRequest request,String bookId) {
        return new BaseResp().Error("订单服务异常,进行降级处理!");
    }
}
